import { IsArray, IsBoolean, IsNotEmpty } from 'class-validator'
import i18n from '@/i18n'
import { ApiProperty } from '@nestjs/swagger'
import { MetaTemplateSaveDto } from './meta-template-save.dto'

export class MetaTemplateBatchSaveDto {
  @ApiProperty({ description: i18n.t('app-meta.dto.meta-template-batch-save.12150129-0') })
  @IsBoolean()
  cover: boolean

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-template-batch-save.12150129-1') })
  @IsArray()
  @IsNotEmpty({ each: true })
  templates: MetaTemplateSaveDto[]
}
